export const setting = {
    namespaced: true,
    state: {
        asideDisplay: true,
        markDown: ""
    },
    mutations: {
        setDsideDisplay(state, asideDisplay) {
            state.asideDisplay = asideDisplay
        },
        setMarkdown(state, markDown) {
            state.markDown = markDown
        },

    },
    actions: {
        async asideDisplayIsTrue({commit}) {
            commit("setDsideDisplay", true)
        },
        async asideDisplayIsFalse({commit}) {
            commit("setDsideDisplay", false)
        },
        async saveMarkdown({commit}, markdown) {
            commit("setMarkdown", markdown)
        }
    },
    getters: {
        asideDisplay(state) {
            return state.asideDisplay
        }
    }
}
